@import './btn.scss';
@import './element-ui.scss';
@import './mixin.scss';
@import './var.scss';
html,
body {
    width: 100%;
    height: 100%;
}

body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-color: $background;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

p>a,
a:focus,
a:hover {
    // text-decoration: underline; // 2017-12-15 by cuihd
    color: #37a1fb;
    cursor: pointer;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.remote-center {
    .el-autocomplete-suggestion__list li {
        color:#999;
        text-align: center;
        cursor: default;
        &:hover{
        background-color: #fff;
        cursor: default;
        }
    }
}

.block {
    display: block;
}

code {
    background: #eef1f6;
    padding: 15px 10px;
    margin-bottom: 20px;
    display: block;
    line-height: 36px;
    a {
        color: #337ab7;
        cursor: pointer;
        &:hover {
            color: rgb(32, 160, 255);
        }
    }
}

.fade-enter-active,
.fade-leave-active {
    transition: all .2s ease
}

.fade-enter,
.fade-leave-active {
    opacity: 0;
}

//main-container全局样式
.app-container {
    padding: 20px;
}

.components-container {
    margin: 30px 50px;
    position: relative;
}

.pagination-container {
    padding: 20px 0;
}

.editor-container .CodeMirror {
    height: 100%!important;
}

.wscn-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.sub-navbar {
    height: 50px;
    line-height: 50px;
    position: relative;
    width: 100%;
    text-align: right;
    padding-right: 20px;
    transition: 600ms ease position;
    background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
    .subtitle {
        font-size: 20px;
        color: #fff;
    }
    &.draft {
        background: #d0d0d0;
    }
    &.deleted {
        background: #d0d0d0;
    }
}

.publishedTag,
.draftTag,
.deletedTag {
    color: #fff;
    background-color: $panGreen;
    line-height: 1;
    text-align: center;
    margin: 0;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    position: absolute;
    left: 20px;
    top: 10px;
}

.draftTag {
    background-color: $yellow;
}

.deletedTag {
    background-color: $red;
}

.input-label {
    font-size: 14px;
    color: #48576a;
    line-height: 1;
    padding: 11px 5px 11px 0;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

.no-marginLeft {
    .el-checkbox {
        margin: 0 20px 15px 0;
    }
    .el-checkbox+.el-checkbox {
        margin-left: 0px;
    }
}

.filter-container {
    padding-bottom: 10px;
    .filter-item {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 10px;
    }
}

.el-message-box {
    .el-message-box__content {
        padding: 20px 0px 30px;
        .el-message-box__message {
            p {
                font-size: 16px;
                color: #333;
                text-align: center;
            }
        }
        .el-message-box__status {
            position: absolute;
            margin-left: 20px;
            top: 30px;
            transform: translateY(-50%);
            font-size: 36px !important;
        }
    }
    .el-message-box__btns {
        text-align: center;
        padding-bottom: 30px;
    }
}

//refine vue-multiselect plugin
.multiselect {
    line-height: 16px;
}

.multiselect--active {
    z-index: 1000 !important;
}

//refine simplemde
.simplemde-container {
    .editor-toolbar.fullscreen,
    .CodeMirror-fullscreen {
        z-index: 1003;
    }
}

//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
    transform: none;
    left: 0;
    position: relative;
    margin: 0 auto;
}

//github-corner
.github-corner:hover .octo-arm {
    animation: octocat-wave 560ms ease-in-out
}

@keyframes octocat-wave {
    0%,
    100% {
        transform: rotate(0)
    }
    20%,
    60% {
        transform: rotate(-25deg)
    }
    40%,
    80% {
        transform: rotate(10deg)
    }
}

@media (max-width:500px) {
    .github-corner:hover .octo-arm {
        animation: none
    }
    .github-corner .octo-arm {
        animation: octocat-wave 560ms ease-in-out
    }
}

// button
.el-button--text {
    // color: #666;
}

.el-loading-mask {
    background-color: rgba(255, 255, 255, .3);
}

.el-message {
    top: 90px;
}

// link
.link-type {
    cursor: pointer;
    color: $content;
    &:hover {
        color: $primary;
    }
}

// bread crumb
.el-breadcrumb {
    .el-breadcrumb__separator {
        color: $sub-content;
    }
    a {
        color: $primary;
    }
}

// menu
.el-menu {
    i {
        color: #ccc;
    }
    .el-submenu__title {
        color: #fff;
        &:hover {
            background-color: #2F333E;
        }
    }
    .el-submenu.is-opened.is-active {
        i {
            color: #fff;
        }
        .el-submenu__title {
            color: $primary;
            background-color: #2B2F3A;
        }
    }
    .el-menu-item {
        &:hover {
            background-color: #2B2F3A;
        }
        &.current {
            color: $primary;
        }
    }
}

.el-submenu {
    .el-menu {
        text-indent: 1.4em;
        background-color: #2F333E;
    }
    .el-menu-item {
        font-weight: 700; // by cuihd
        color: #999;
        &:hover {
            background-color: #2B2F3A;
        }
        &.is-active {
            color: $primary;
            .dot {
                background: transparent;
                width: 6px;
                height: 6px;
                border: 1px solid $primary;
            }
        }
        .dot {
            position: absolute;
            top: 50%;
            // left: 50px;
            margin-left: 10px; // dot修改 by cuihd
            transform: translate3d(-50%, -50%, 0);
            display: block;
            width: 4px;
            height: 4px;
            border-radius: 4px;
            background: #fff;
        }
    }
}

// dilog的关闭按钮默认颜色 cuihd 20180126
.el-dialog__headerbtn .el-dialog__close{
    color: #ccc;
}
// dilog的title颜色 cuihd 20180126
.el-dialog__title{
    color: #333;
}

// table
.el-table--fit {
    //去掉border：none;
    .el-table__header-wrapper {
        thead {
            th {
                font-weight: normal;
                div {
                    color: $desc;
                }
            }
        }
    }
}

// tab
.el-tabs__header {
    margin: 0;
    padding: 0 20px;
    background: #fff;
}

// 卡片管理
.titleTap{
    .el-tabs__header{
        margin-bottom: 40px;
        border-bottom: 1px solid #ebebeb;
        box-shadow:none;
        -webkit-box-shadow: none;
    }
}
  
// msgbox
.msgbox-fade-enter-active {
    animation: zoomIn .3s;
}

.msgbox-fade-leave-active {
    animation: zoomOut .3s;
}

// el-dialog
.dialog-fade-enter-active {
    animation: zoomIn .3s;
}

.dialog-fade-leave-active {
    animation: zoomOut .3s;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
        transform: scale3d(.3, .3, .3)
    }
    50% {
        opacity: 1
    }
}

@keyframes zoomOut {
    0% {
        opacity: 1
    }
    50% {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
        transform: scale3d(.3, .3, .3)
    }
    100% {
        opacity: 0
    }
}

// 活动管理审查历史记录
.el-table.mytable th,
.el-table.mytable th div {
    font-size: 14px;
    color: #999;
    text-align: left;
    background: #f7f7f7;
}

.el-table.mytable th {
    padding-left: 20px;
    border-top: solid 1px #ccc;
    border-left: solid 1px #ccc;
    border-bottom: solid 1px #ccc;
}

.el-table.mytable::after {
    border-right: solid 1px #ccc;
}

.el-table.mytable::before {
    border-bottom: solid 1px #ccc;
}

// 去掉 el-table__empty-block
.myArea .el-form-item {
    height: 36px;
}


/*空中课堂的课程管理顶部的汇总表*/

.table-list.tabel-box-no-padding .table-box {
    padding-bottom: 0;
    margin-top: 0;
}

@mixin link-a {
    color: -webkit-link;
    cursor: auto;
    text-decoration: underline;
}

.read-recod {
    img {
        max-width: 1000px;
        height: auto;
    }
}

.read-recod-check {
    img {
        max-width: 760px;
        height: auto;
    }
}

.link-src {
    color: $success;
    cursor: pointer;
    &:hover {
        text-decoration: underline;
    }
}

// 面包屑颜色修改
.el-breadcrumb a {
    color: #666
}

// 表格悬浮样式修改 
.el-table--fit {
    .el-table__body-wrapper {
        .el-table__body {
            tbody {
                tr {
                    &:hover {
                        td {
                            background-color: #f4f4f4;
                        }
                    }
                }
            }
        }
    }
}

// tab 头部底线修改 添加阴影
.el-tabs__header {
    border-bottom: 1px solid #ebebeb;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
}

// tab 的内容不隐藏
.el-tabs__content {
    overflow: visible;
}

// tab 头部文字颜色修改
.el-tabs__item {
    color: #666;
}

//
.el-dropdown-menu {
    border: 0;
}

.el-autocomplete-suggestion li:active{
    background: none
}

// author shwj 20180322 修复左侧导航服务内容高亮问题 ----
.el-menu .el-submenu.is-opened.is-active .el-submenu__title {
    color: #fff;   
}
.el-menu .el-submenu.is-opened.is-active > .el-submenu__title {
    color: #ff5e2c;
    background-color: #2B2F3A;
}
.el-menu .el-submenu.is-active > .el-submenu__title {
    color: #ff5e2c;
    background-color: #2B2F3A;
}
.el-menu .el-submenu.is-opened.is-active .el-submenu.is-active > .el-submenu__title {
    color: #ff5e2c;
    background-color: #2B2F3A;
}

/*新手任务input为number类型*/
.add-activity input[type='number']{
    -moz-appearance: textfield;
}
.add-activity input::-webkit-outer-spin-button,
.add-activity input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0;
}
// end --------